package com.yuju.rpt.dao.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.persist.base.mapper.BaseMapper;
import com.yuju.rpt.dao.ICheckinCustomTypeDetailDao;
import com.yuju.rpt.dao.entity.CheckinCustomTypeDetail;
import com.yuju.rpt.dao.mapper.CheckinCustomTypeDetailMapper;
import com.yuju.rpt.model.CheckinCustomTypeDetailModel;

/**
 * 类名：CheckinCustomTypeDetailDaoImpl  <br />
 *
 * 功能：
 *
 * @author : jiaokn <br />
 * @Date : 2018年2月5日 下午5:38:16  <br />
 * @version : 1.1 <br />
 */
@Repository
public class CheckinCustomTypeDetailDaoImpl extends AbstractBaseDao<CheckinCustomTypeDetailModel, CheckinCustomTypeDetail, String> implements ICheckinCustomTypeDetailDao {
	
	@Autowired
	private CheckinCustomTypeDetailMapper checkinCustomTypeDetailMapper;
	
	@Override
	public BaseMapper<CheckinCustomTypeDetail, String> getMapper() {
		return checkinCustomTypeDetailMapper;
	}

	@Override
	public List<CheckinCustomTypeDetailModel> getCheckinStatDetailByCustomType(
			CheckinCustomTypeDetailModel checkinCustomTypeDetailModel) {
		return convertP2M(checkinCustomTypeDetailMapper.getCheckinStatDetailByCustomType(getBeanMap(checkinCustomTypeDetailModel)));
	}

	@Override
	public CheckinCustomTypeDetailModel getSum(CheckinCustomTypeDetailModel checkinCustomTypeDetailModel) {
		return convertP2M(checkinCustomTypeDetailMapper.getSum(getBeanMap(checkinCustomTypeDetailModel)));
	}


}
